package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * @Description: 零件
 * @ClassName: com.xframe.domain.e3sp.basedata.Part
 * @Author: xufeng
 * @CreateTime: 2024/01/02
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t02_parts", label = "零件")
@XSelectItem(keyName = "categoryId",codeName = "categoryCode",textName = "name")
public class Part extends BaseModel {

    /**
     * 零件清单ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "part_id", primaryKeyFlag = true,desc = "零件清单ID")
    private Long partId;

    /**
     * PCID
     */
    @XColumn(name = "pc_id",desc = "PCID")
    private Long pcId;

    /**
     * 零件号
     */
    @XQueryCondition
    @XColumn(name = "part_no", uniqueFlag = true,desc = "零件号",length = 100)
    private String partNo;

    /**
     * 中文名称
     */
    @XQueryCondition
    @XColumn(name = "name_cn",desc = "中文名称",length = 200)
    private String nameCn;

    /**
     * 英文名称
     */
    @XQueryCondition
    @XColumn(name = "name_en", desc = "英文名称",length = 200,nullFlag = true)
    private String nameEn;

    /**
     * 发文号
     */
    @XColumn(name = "doc_no", desc = "发文号",length = 100,nullFlag = true)
    private String docNo;

    /**
     * 计量单位
     */
    @XColumn(name = "unit", desc = "计量单位",length = 20,nullFlag = true)
    private String unit;

    /**
     * SCID
     */
    @XColumn(name = "sc_id",desc = "SCID")
    private Long scId;

    /**
     * 关键部件
     */
    @XQueryCondition
    @XColumn(name = "key_com", desc = "关键部件",nullFlag = true)
    private String keyCom;

    /**
     * 外部零件号
     */
    @XColumn(name = "externa_no", desc = "外部零件号",length = 500,nullFlag = true)
    private String externaNo;

    /**
     * 备注
     */
    @XColumn(name = "remark",desc = "备注",length = 500,nullFlag = true)
    private String remark;
}
